Adwaita: notebook with hidden header style fix
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 3 Feb 2016 14:23:17 +0000 (15:23 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 3 Feb 2016 14:23:17 +0000 (15:23 +0100)
the stack styling is applied only when there is a header, hence
when the stack node is not the notebook only child, should cure
https://bugzilla.gnome.org/show_bug.cgi?id=760996

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 9d675ef134399e3fb04a7c619308749e78817176..af20b46217eb4056db5ef3aa4905bcbe721c46ca 100644 (file)
@@ -1925,7 +1925,7 @@ notebook {
     }
   }
 
-  > stack {
+  > stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
     background-color: $base_color;
 
     &:backdrop { background-color: $backdrop_base_color; }
index dfe955da25a5c21b233ac5fb555d269feb54f9ac..7f1611e780bc6ca1d1668372f93241e22a8e746b 100644 (file)
@@ -2368,9 +2368,9 @@ notebook > header {
       margin-bottom: 4px; }
       notebook > header.left tabs tab.reorderable-page, notebook > header.right tabs tab.reorderable-page {
         border-style: solid none; }
-notebook > stack {
+notebook > stack:not(:only-child) {
   background-color: #292929; }
-  notebook > stack:backdrop {
+  notebook > stack:not(:only-child):backdrop {
     background-color: #2c2c2c; }
 
 /**************
index 3e610176abbde4a430c13a865a8c5f929bd563c5..53678f920817e468db03268aa259806c75608274 100644 (file)
@@ -2378,9 +2378,9 @@ notebook > header {
       margin-bottom: 4px; }
       notebook > header.left tabs tab.reorderable-page, notebook > header.right tabs tab.reorderable-page {
         border-style: solid none; }
-notebook > stack {
+notebook > stack:not(:only-child) {
   background-color: #ffffff; }
-  notebook > stack:backdrop {
+  notebook > stack:not(:only-child):backdrop {
     background-color: white; }
 
 /**************